FROM golang:latest

WORKDIR $GOPATH/src/docker_gokit
COPY . $GOPATH/src/docker_gokit
ENV GO111MODULE=on
ENV GOPROXY="https://goproxy.io"
RUN go mod tidy
RUN go build main.go

EXPOSE 8081
ENTRYPOINT ["./main"]